/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tree;

import java.util.List;

/**
 *
 * @author Ej-Dý
 */
public class Argument2Tree extends Tree {

    private List<VyrazTree> v;
    private int pocet;

    public Argument2Tree(Position start,Position end,List<VyrazTree> v,int pocet ){
        super(start,end);
        this.v=v;
        this.pocet=pocet;
    }

    public int getPocet(){
        return pocet;
    }
     public List<VyrazTree> getVyraz(){
        return v;
    }


    @Override
    public void accept(TreeVisitor visitor) {
        visitor.visitAgrument2(this);
    }

    @Override
    public void generate(Context ctx) {
        for (VyrazTree vt :v){
            
            vt.generate(ctx);
        }
    }
    @Override

    public String toString(){
        return String.format("Argument2 %s: [%s,%d]", super.toString(), v, pocet);
    }

}
